﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TimKenSite.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="TimKen.Web.User.Edit" %>

<%@ Register Src="../UserControls/UserCenter.ascx" TagName="UserCenter" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="server">
    <uc1:UserCenter ID="ucUserCenter" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server">
   <script type="text/javascript">
       function checkForm() {
           if (document.getElementById("<%=txtNickName.ClientID%>").value == "") {
               alert(x_NickNameNotAllowBlank);
               return false;
           }
           if (document.getElementById("<%=txtRealName.ClientID%>").value == "") {
               alert(x_RealNameNotAllowBlank);
               return false;
           }
           if (document.getElementById("<%=txtEmail.ClientID%>").value == "") {
               alert(x_EmailNotAllowBlank);
               return false;
           }
           if (document.getElementById("<%=txtConfirmPassword.ClientID%>").value != document.getElementById("<%=txtPassword.ClientID%>").value) {
               alert('<%=GetLangString("x_ErrorConfirmPassword")%>');
               return false;
           }
           return true;
       }
    </script>
    <form runat="server">
     <div class="rtitle">
        <%=GetLangString("UserInfo")%>
    </div>
    <div class="msglist">
   <%=GetLangString("UserInfoEdit")%>(<b><a href="../User/ErrorAuthority.aspx" class="underlinea"> <%=GetLangString("Apply")%></a></b>)
    </div>
    <div class="edituser">
        <ul>
            <li>
                <div class="edituserright"><asp:Label ID="lbUserName" runat="server"></asp:Label><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("UserName")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtNickName" runat="server"></asp:TextBox><span>*</span><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("NickName")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtRealName" runat="server"></asp:TextBox><span>*</span><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("RealName")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtCompany" runat="server"></asp:TextBox><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("Company")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtPhone" runat="server"></asp:TextBox><br/> </div>
                <div class="editusertitle">
                    <%=GetLangString("Telephone")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtEmail" runat="server"></asp:TextBox><span>*</span><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("Email")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox> <span><%=GetLangString("ChangePasswordRemark") %></span><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("Password")%>：
                </div>
            </li>
            <li>
                <div class="edituserright"><asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox><br/></div>
                <div class="editusertitle">
                    <%=GetLangString("ConfirmPassword")%>：
                </div>
            </li>
            <li style=" line-height:45px;">
                
                <div class="edituserright"><asp:LinkButton ID="btnUpdate" runat="server" OnClientClick="return checkForm(); " OnClick="btnUpdate_Click" CssClass="submitlink"></asp:LinkButton></div>
                <div class="editusertitle">&nbsp;</div>
            </li>
        </ul>
    </div></form>
</asp:Content>
